package com.wyy.service;

import com.wyy.beans.Resource;
import com.wyy.common.Result;

import java.util.List;

public interface ResourceService {

    Result<Resource> addResource(Resource resource);

    Result<Resource> updateResource(Resource resource);

    Result<Resource> deleteResourceById(long id);

    Resource getResourceById(long id);

    List<Resource> getResourcesByRoleId(long roleId);

}
